package com.ruoyi.cs.event.supplieroffer.mapper;

import com.ruoyi.cs.event.supplieroffer.domain.SupplierOffer;
import com.ruoyi.cs.event.supplieroffer.domain.SupplierOfferList;

import java.util.List;

/**
 * 供应商报价
 * 数据层
 * @author Drj 2021/6/28
 */
public interface SupplierOfferMapper {
    /**
     * 供应商报价查询
     * @param supplierOffer 查询条件
     * @return
     */
    public List<SupplierOffer> selectSupplierOfferList(SupplierOffer supplierOffer);

    /**
     * 供应商报价根据编号查询
     * @param supplierQuotaId 供应商报价编号
     * @return
     */
    public SupplierOffer selectSupplierOfferById(String supplierQuotaId);

    /**
     * 获取最新的一条供应商报价编号
     * @return
     */
    String getSupplierQuotaId();

    /**
     * 新增供应商报价
     * @param supplierOffer
     * @return
     */
    public int insertSupplierOffer(SupplierOffer supplierOffer);

    /**
     * 更新供应商报价
     * @param supplierOffer
     * @return
     */
    public int updateSupplierOffer(SupplierOffer supplierOffer);

    /**
     * 删除供应商报价
     * 仅修改删除标志
     * @param supplierOffer
     * @return
     */
    public int updateSupplierOfferDeleteFlag(SupplierOffer supplierOffer);

//    产品报价详细

    /**
     * 查询供应商报价对应的所有产品报价详细
     * @param supplierQuotaId 供应商报价编号
     * @return
     */
    public List<SupplierOfferList> selectSupplierOfferListListById(String supplierQuotaId);

    /**
     *  查询供应商报价对应的指定产品报价详细
     * @param supplierOfferList 查询条件
     * @return
     */
    public SupplierOfferList selectSupplierOfferListById(SupplierOfferList supplierOfferList);

    /**
     * 供应商报价详细新增
     * @param supplierOfferList
     * @return
     */
    public int insertSupplierOfferList(SupplierOfferList supplierOfferList);

    /**
     * 更新供应商报价详细
     * @param supplierOfferList
     * @return
     */
    public int updateSupplierOfferList(SupplierOfferList supplierOfferList);

    /**
     * 删除供应商报价详细
     * @param supplierOfferList
     * @return
     */
    public int deleteSupplierOfferListById(SupplierOfferList supplierOfferList);


}
